#include<stdio.h>
int main()
{
    int n;
    for(n=1;n<=200;n++)
    {
        if(n%3==0)
    continue;
    printf("%d ",n);
    }
    printf("\n");
}